import * as VueRouter from 'vue-router';
import { defineComponent } from 'vue';
import Home from '../views/home/index.vue';
import childrenList from "./childrenList.js"
let routes = [
  {
    path: "/",
    name: "主页",
    component: defineComponent(Home),
    children: childrenList,
  },
];

const router = VueRouter.createRouter({
  history: VueRouter.createWebHistory(),
  routes
});

export default router;